<!DOCTYPE html>
<html>
<head>
  <meta charset="utf-8">
  <meta http-equiv="x-ua-compatible" content="IE=edge" >
  <meta name="viewport" content="width=device-width, height=device-height, initial-scale=1, maximum-scale=1, minimum-scale=1, user-scalable=no"/>
  <title>Aliplayer Functions</title>
  <link rel="stylesheet" href="https://g.alicdn.com/apsara-media-box/imp-web-player/2.18.1/skins/default/aliplayer-min.css" />
  <script type="text/javascript" charset="utf-8" src="https://g.alicdn.com/apsara-media-box/imp-web-player/2.18.1/aliplayer-min.js"></script>
  <!-- 请下载之后使用 -->
  <script src="../static/js/jquery.js"></script>
  <script src="../static/js/aliplayercomponents-1.0.9.min (1).js"></script>
</head>
<body>
<div id="player-con"></div>
<script>
  /* The bullet screen component is integrated with CommentCoreLibrary. For more information, see https://github.com/jabbany/CommentCoreLibrary/ */
  var danmukuList = [{
    "mode": 1,
    "text": "test",
    "stime": 1000,
    "size": 25,
    "color": 0xffffff
  }, {
    "mode": 1,
    "text": "test",
    "stime": 2000,
    "size": 25,
    "color": 0xff0000
  }, {
    "mode": 1,
    "text": "test",
    "stime": 30000,
    "size": 25,
    "color": 0xff0000
  }, {
    "mode": 1,
    "text": "test",
    "stime": 4000,
    "size": 25,
    "color": 0x00c1de
  }]
  var player = new Aliplayer({
    id: "player-con",
    source: "https://outin-cc7b0a77725b11eeb3bd00163e31db23.oss-cn-shanghai.aliyuncs.com/sv/4ec94702-18b70e696b7/4ec94702-18b70e696b7.mp4?Expires=1699326856&OSSAccessKeyId=LTAIxSaOfEzCnBOj&Signature=ku4ACA80L9zHI2t9OcYhaGy75OQ%3D",
    width: "100%",
    height: "500px",
    autoplay: true,
    isLive: false,
    controlBarVisibility: 'click',    /* The mode of the status bar, which is set to Click. */
    showBarTime: '10000',             /* The time period that you must wait before the status bar is hidden, which is set to 10,000 milliseconds. */
    components: [{
      name: 'AliplayerDanmuComponent',
      type: AliPlayerComponent.AliplayerDanmuComponent,
      args: [danmukuList]
    }]
  }, function (player) {
    console.log("The player is created");
  });
</script>
</body>
</html>
